<?php
namespace Spay;

final class SpayUtils{
    public  static function utf8($v)
    {
        if (is_string($v) && (mb_detect_encoding($v, "UTF-8", true)!='UTF-8'))
            return utf8_encode($v);
        return $v;
    }
}